import serviceAxios from "@/utils/serviceAxios"

export const checkUsername = (params) => {
	return serviceAxios({
		url: "/check/username",
		method: "get",
		params,
	});
};

export const checkPassword = (params) => {
	return serviceAxios({
		url: "/login",
		method: "POST",
		params,
	});
};

export const createUser = (params) => {
	return serviceAxios({
		url: "/user",
		method: "post",
		params,
	});
};

export const getUserInfo= (id) => {
	return serviceAxios({
		url: "/user/"+id,
		method: "get",
	});
};


// export const test = () => {
// 	return serviceAxios({
// 		url: "/check/username",
// 		method: "get",
// 	});
// };

